<!DOCTYPE html>
<html>
	<head>
		<title>参赛方案</title>
		<meta http-equiv="content-type" content="textml; charset=utf-8" />
		<meta name="description" content="__DESCRIPTION__">
		<meta name="keywords" content="__KEYWORDS__">		<link href="__CSS__/common.css" rel="stylesheet" type="text/css">
		<link href="__CSS__/Version4Master.css" rel="stylesheet" type="text/css">
		<script src="__JS__/ga.js" type="text/javascript" async="" ></script>
		<script src="__JS__/jquery-1.4.1.js" type="text/javascript"></script>
		<link href="__CSS__/setting.css" rel="stylesheet" type="text/css">
		<link href="__CSS__/account.css" rel="stylesheet" type="text/css">
		<link href="__CSS__/addproject.css" rel="stylesheet" type="text/css">
		<link href="__CSS__/thickbox.css" rel="stylesheet" type="text/css">
		<script src="__JS__/thickbox-compressed.js" type="text/javascript"></script>
		<script src="__JS__/tiny_mce.js" type="text/javascript"></script>
		<script src="__JS__/project.js" type="text/javascript"></script>
		<link href="__CSS__/validator.css" rel="stylesheet" type="text/css">
		<script src="__JS__/formValidator.js" type="text/javascript"></script>
		<script src="__JS__/formValidatorRegex.js" type="text/javascript"></script>
		<script src="__JS__/WebResource.js" type="text/javascript"></script>
		<script src="__JS__/WebResource_002.js" type="text/javascript"></script>
		<script type="text/javascript">
            function upLoadFormOnCompelete(link, fileName, fileSize) {
                InsertToEditor("<img src=\"" + link + "\">");
            }

			$(document).ready(function () {

				$.formValidator.initConfig({ formid: "aspnetForm", onerror: function (msg) { alert(msg) }, onsuccess: function () { return true; } });
				$("#ctl00_ContentPlaceHolder1_ddlThemes").formValidator({  onshow: "请选择", onfocus: "必须选择", oncorrect: "选择正确", defaultvalue: "2" }).inputValidator({ min: 1, onerror: "必须选择参赛主题" });

				$("#Title").formValidator({ empty: false, onshow: "请输入方案名称", onfocus: "最多只能输入20个字符", oncorrect: "输入正确", defaultvalue: "" }).inputValidator({ min: 1, max: 40, onerror: "你输入的方案名称长度不正确,请确认" });
				$("#Summary").formValidator({ empty: false, onshow: "请输入方案概述", onfocus: "方案主体内容框架介绍，500字以内", oncorrect: "输入正确", defaultvalue: "" }).inputValidator({ min: 1, max: 500, onerror: "方案概述的长度不正确,请确认" });
				$("#ChoiceExs").formValidator({ empty: false, onshow: "请输入选题经过", onfocus: "最多只能输入500个字符", oncorrect: "输入正确", defaultvalue: "" }).inputValidator({ min: 1, max: 500, onerror: "选题经过的长度不正确,请确认" });
				$("#Divide").formValidator({ empty: false, onshow: "请输入团队分工介绍", onfocus: "最多只能输入300个字符", oncorrect: "输入正确", defaultvalue: "" }).inputValidator({ min: 1, max: 300, onerror: "团队分工介绍的长度不正确,请确认" });

				$("#Creative").formValidator({ empty: true, onshow: "你可以选择创意主题赛来凸显你方案的创意", onfocus: "非常不错,继续!", onempty: "非常不错,继续!" });
				$("#Platforms").formValidator({ onshow: "选择工具平台", onfocus: "如果没有列出,可自行填写工具", oncorrect: "不错的选择,继续加油!", onerror: "必须选择或填写自己方案使用的工具平台" }).functionValidator({

					fun: function (val, elem) {
						var result = false;
						$("#ctl00_ContentPlaceHolder1_CheckBoxList1>input[type=\"checkbox\"]").each(function () {
							result = result || $(this).attr("checked")

						});
						if (val != "" || result) {
							return true;
						} else {
							return "必须选择或填写自己方案使用的工具平台";
						}
					}
				});

			});
		</script>
	</head>
	<body>
		<form name="projectname" method="post" action="__URL__/doModProject" id="nameid">
		<script type="text/javascript">
			//<![CDATA[
			var theForm = document.forms['aspnetForm'];
			if (!theForm) {
				theForm = document.aspnetForm;
			}
			function __doPostBack(eventTarget, eventArgument) {
				if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
					theForm.__EVENTTARGET.value = eventTarget;
					theForm.__EVENTARGUMENT.value = eventArgument;
					theForm.submit();
				}
			}
			//]]>
		</script>
		<div id="container">
			<include file="./Match/Tpl/Include/header.html" />
			<div class="clear"></div>
			<div id="container_content">
				<div class="topic_nav_block_wrapper">
					<ul class="topic_nav_block">
							<li><a href="__URL__/showMatch/id/{$Think.get.id}">商业实践项目</a> </li>
							<li><a  class="current_nav" href="__URL__/modProject/id/{$Think.get.id}">方案展示</a></li>
							<empty name="res.Name">
								<li><a onclick="alert('请先填写方案展示')" href="javascript:void(0)">参赛主题</a> </li>
								<li><a onclick="alert('请先填写方案展示')" href="javascript:void(0)">详细方案</a> </li>
								<li><a onclick="alert('请先填写方案展示')" href="javascript:void(0)">实践作品展示</a></li>
							<else />
								<li><a href="__URL__/modTheme/id/{$Think.get.id}">参赛主题</a> </li>
								<li><a href="__URL__/uploadProjectFile/id/{$Think.get.id}">详细方案</a> </li>
								<li><a href="__URL__/addWorks/id/{$Think.get.id}">实践作品展示</a></li>
							</empty>
							<li style=" float:right;"><a class="teamnav" href="__APP__/Team/Home/index/id/{$Think.get.id}">返回团队主页</a></li>
						</ul>
					<div class="clear">
					</div>
				</div>
				<input type="hidden" name="id" value="{$Think.get.id}" />
				<div id="editorHolder" style="border: 1px dotted #ddd; border-top: none;">
					<div class="edit_item">
						<label class="legend">*方案名称：</label>
						<input name="Title" type="text" value="{$res.Name}" maxlength="50" id="Title" class="inupt_text"><span id="TitleTip" class="onShow">请输入方案名称</span>
						<span id="ctl00_ContentPlaceHolder1_lbTheme"></span>
					</div>
					<div class="edit_item">
						<label class="legend">*方案概述：</label>
						<textarea name="Summary" rows="6" cols="20" id="Summary" class="text_area" style="resize:none;">{$res.Summarize}</textarea>
						<label id="SummaryTip" class="onShow">请输入方案概述</label>
						<span id="ctl00_ContentPlaceHolder1_lbTheme"></span>
					</div>
					<div class="edit_item">
						<label class="legend">*团队分工：</label>
		          		<textarea name="Divide" rows="6" cols="20" id="Divide" class="text_area" style="resize:none;">{$res.Divide}</textarea>
		          <br />
		          <label id="DivideTip" style="margin-left: 75px;">可以从团队组成、人员分工等方面介绍团队，300字以内</label>
					</div>
					<div class="edit_item" style="margin-top: 10px;">
						<label class="legend">*选题经过：</label>
						<textarea name="ChoiceExs" rows="6" cols="20" id="ChoiceExs" class="text_area">{$res.ChoiceEx}</textarea>
                	<br />
                	<label id="ChoiceExsTip" class="onShow" style="margin-left:75px;">500字以内</label>
						<span id="ctl00_ContentPlaceHolder1_lbTheme"></span>
					</div>
					<div class="edit_item">
					<label class="legend">*访问设置：</label>
						<span id="ctl00_ContentPlaceHolder1_rblVisitSet">
							<input id="VisitSet_0" type="radio" name="VisitSet" value="0" <if condition="$res.IsPublic eq 0">checked</if> />
								<label for="VisitSet_0">详细方案及附件保密</label>
							<input id="VisitSet_1" type="radio" name="VisitSet" value="1" <if condition="$res.IsPublic eq 1">checked</if> />
								<label for="VisitSet_1">详细方案及附件公开</label>
						</span>
					</div>

					<div class="save_block">
						<input type="submit" name="Submit" value="保存" id="Submit" class="btn_blue">
						<input type="submit" name="Next" value="下一步" id="Next" class="btn_blue" onclick="location.href='www.baidu.com'">
						<div style="height: 3em; line-height: 3em;" class="text_red">
						</div>
					</div>
				</div>
			</div>

			<div class="clear"></div>
			<include file="./Match/Tpl/Include/footer.html" />
		</div>
			<script type="text/javascript">
				var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
				document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F63e166eb1d295457aa24b81ff1a53347' type='text/javascript'%3E%3C/script%3E"));
			</script>
			<script src="__JS__/h.js" type="text/javascript"></script>
			<script type="text/javascript">
				var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-20813267-1']); _gaq.push(['_setDomainName', '.newwinner.cn']);
				_gaq.push(['_trackPageview']); (function () {
					var ga = document.createElement('script'); ga.type = 'text/javascript'; 
					ga.async = true; ga.src = ('https:' == document.location.protocol ? ' https://ssl' : ' http://www') + '.google-analytics.com/ga.js';
					var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
				})(); 
			</script>
			
		</form>
		<include file="./Match/Tpl/Include/ajaxloadhtml.html" />
	</body>
</html>
<script type="text/javascript">
	var funnum=0;
	function uploadCallBack(filename){
		if(filename==false){
			alert("文件上传失败,请重新上传");
			$(".load_body").load("__URL__/UpLoadAttachFiles");
		}else{
			document.getElementById("toupfile").innerHTML+='<a href="__UPFILE__/Doc/'+filename+'" target="_blank">'+filename+'</a>;';
			document.getElementById("upres").innerHTML='文件'+filename+'上传完毕,你可以继续选择文件上传<br />';
			document.getElementById("upfileval").value+=' '+filename+'; ';
			
			funnum++;
			if(funnum>=3){
				document.getElementById("add").parentNode.removeChild(document.getElementById("add"));
				document.getElementById("ajaxloadhtml").parentNode.removeChild(document.getElementById("ajaxloadhtml"));
			}
		}
	}
</script>